﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// restaurant 的摘要说明
/// </summary>
public class Restaurant
{

    

    int m_iID ;
    string m_strName ;
    string m_strAddress;
    string m_strTel;
    int m_iTableNum ;
    int m_iConsumeMin ;
    int m_iConsumeMax ;
    string m_strCity ;
    string m_strDesc ;

    public Restaurant()
	{

        m_iID = -1;
        m_strName = "";
        m_strAddress = "";
        m_strTel = "";
        m_iTableNum = -1;
        m_iConsumeMin = -1;
        m_iConsumeMax = -1;
        m_strCity = "";
        m_strDesc = "";

		//
		// TODO: 在此处添加构造函数逻辑
		//
	}
    //这是餐馆类所提供的设置 和获取其属性的函数
    public  void  SetName(string strIn )
    {
        m_strName = strIn;
        

    }
    public void SetID(int iIn)
    {
        m_iID = iIn;


    }

    public void SetAddress(string strIn)
    {
        m_strAddress = strIn;


    }

    public void SetTel(string  strIn)
    {
        m_strTel  = strIn;


    }

    public void SetTableNum(int iIn)
    {
        m_iTableNum = iIn;


    }

    public void SetConsumeMin(int iIn)
    {
        m_iConsumeMin = iIn;


    }

    public void SetConsumeMax(int iIn)
    {
        m_iConsumeMax = iIn;


    }
    public void SetCity(string strIn)
    {
        m_strCity = strIn;


    }
    public void SetDesc(string strIn)
    {
        m_strDesc = strIn;


    }


    public int GetID()
    {
        return m_iID;
    }
    public string  GetName()
    {
        return m_strName;
    }
    public string GetAddress()
    {
        return m_strAddress;
    }
    public string  GetTel()
    {
        return m_strTel;
    }
    public int GetConsumeMin()
    {
        return m_iConsumeMin;
    }
    public int GetConsumeMax()
    {
        return m_iConsumeMax;
    }
    public string GetCity()
    {
        return m_strCity;
    }
        public string  GetDesc()
    {
        return m_strDesc;
    }
    public int  GetTableNum()
    {
        return m_iTableNum;

    }
    



    //public struct Book
    //{
    //    public decimal price;
    //    public string title;
    //    public string author;
    //}

}
